-- GENERATED SPELL FOR [Stromgarde Defender] --


function spell0_2584(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_2584', 566, 1)
end

function spell1_2584(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2584', 8275, 1)
end

function Sorts_2584(pUnit, Event)
local choix_sorts_2584 = math.random(0, 1)
if choix_sorts_2584 == 0 then
pUnit:RegisterEvent('spell0_2584', 1, 1)
end
if choix_sorts_2584 == 1 then
pUnit:RegisterEvent('spell1_2584', 1, 1)
end
end

function mob2584_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2584', math.random(1500, 3000), 1)
end

function mob2584_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2584_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2584_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2584, 1, 'mob2584_Action')
RegisterUnitEvent(2584, 2, 'mob2584_Leave')
RegisterUnitEvent(2584, 3, 'mob2584_Kill')
RegisterUnitEvent(2584, 4, 'mob2584_Die')
